package zy02;

/**
 * @Author czl
 * @Date 2024-04-02
 */
public class Sum {
    public static int getSum(@Max(value = 100) int n) {
        int s = 0;
        for (int i = 1; i <= n; i++) {
            s += i;
        }

        return s;
    }
}
